﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Data;

namespace IntelligentCMS
{
    /// <summary>
    /// Logic, for chaining multiple piplines together.
    /// </summary>
    public class CMSLogic
    {
        public CMSLogic(string name)
        {

        }


        /// <summary>
        /// Adds the pipeline.
        /// </summary>
        /// <param name="thepipeline">The thepipeline.</param>
        public void AddPipeline(CMSPipeline thepipeline)
        {

        }

        /// <summary>
        /// Removes the pipeline.
        /// </summary>
        /// <param name="thepipeline">The thepipeline.</param>
        public void RemovePipeline(CMSPipeline thepipeline)
        {

        }

        /// <summary>
        /// Executes the pipelines.
        /// </summary>
        public DataTable ExecutePipelines(DataTable datain)
        {
            DataTable newData = new DataTable();


            return newData;
        }


        private string name = string.Empty;
        private List<CMSPipeline> pipelines = new List<CMSPipeline>();

    }
}
